<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>39 | 项目状态管理</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords"
	content="Modern Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
<script type="application/x-javascript">
	
	 addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } 

</script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/lines.css" rel='stylesheet' type='text/css' />
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!-- Nav CSS -->
<link href="css/custom.css" rel="stylesheet">
<!-- Metis Menu Plugin JavaScript -->
<script src="js/metisMenu.min.js"></script>
<script src="js/custom.js"></script>
<!-- Graph JavaScript -->
<script src="js/d3.v3.js"></script>
<script src="js/rickshaw.js"></script>
</head>
<body>
	<div id="wrapper">
		<!-- Navigation -->
		<!-- left.jsp -->
		<jsp:include page="left.jsp"></jsp:include>
		<div id="page-wrapper">
			<div class="xs">
				<div class="well1 white">
					<b>项目状态管理</b>
					<hr/>
					<form name="" method="post" action="projectStatusUpdateCommit">
					<input type="hidden" value="${project.id }" name="project.id"/>
					<table class="table">
						<tr>
							<td width="50%"><b>当前项目状态：</b><span style="color:red">
								<c:choose>
										<c:when test="${project.project_status_pre != project.project_status}">
											${project.project_status_pre} 变更为 ${project.project_status }
										</c:when>
										<c:otherwise>
											${project.project_status }
										</c:otherwise>
								</c:choose>
							</span></td>
								<c:if test="${sessionScope.user.role.id == 2}">
									<td width="50%">状态修改为：
										<select name="project_status">
											<option value="10">请选择状态</option>
											<option value="在研">在研</option>
											<option value="收款">收款</option>
											<option value="结束">结束</option>
										</select>
									</td>
								</c:if>
					</table>	
					<b>项目运行控制</b>
					<hr/>
					<table class="table">
						<tr>
							<td width="50%">
								当前运行状态：<span style="color:red">
									<c:choose>
										<c:when test="${project.project_rc_pre != project.project_rc}">
											${project.project_rc_pre} 变更为 ${project.project_rc }
										</c:when>
										<c:otherwise>
											${project.project_rc }
										</c:otherwise>
									</c:choose>
								</span>
							</td>
							<c:if test="${sessionScope.user.role.id == 2}">
							<td width="50%">
								当前运行状态修改为:<select name="project_rc">
									<option value="10">请选择运行状态</option>
									<option value="暂停">暂停</option>
									<option value="运行">运行</option>
								</select>
							</td>
							</c:if>
						</tr>
					</table>
					<b>项目生命周期管理</b>
					<hr/>
					<table class="table">
						<tr>
							<td width="50%">项目当前阶段：<span style="color:red">
								<c:choose>
									<c:when test="${project.project_nlc != project.project_nlc_pre }">
										${project_nl_pre } 变更为 ${project_nl }
									</c:when>
									<c:otherwise>
										${project_nl }
									</c:otherwise>
								</c:choose>
							</span></td>
							<c:if test="${sessionScope.user.role.id == 2}">
							<td width="50%">
								当前阶段修改为:<select name="project_nlc">
										<option value="0">请选择运行状态</option>
									<c:forEach var="lc" items="${lifeCycleList }">
										<option value="${lc.id }">${lc.name_lifecycle }</option>
									</c:forEach>
								</select>
							</td>
							</c:if>
						</tr>
					</table>
						<center>
						<c:if test="${sessionScope.user.role.id == 2}">
							<button class="btn btn-primary">提交</button>
						</c:if>
						<c:if test="${sessionScope.user.role.id == 3 and project.project_reviewed == 1}">
							<input type="button" class="btn btn-default" value="审核通过" onclick="window.location.href='projectReviewedAccept?id=${project.id}'"/>
							<input type="button" class="btn btn-default" value="驳回" onclick="window.location.href='projectReviewedReject?id=${project.id}'">
						</c:if>
						<button class="btn btn-primary" onclick="history.go(-1);" >返回</button>
						</center>
					</form>
				</div>
			</div>




			<!-- copyright -->



			<jsp:include page="copyright.jsp"></jsp:include>

		</div>
	</div>
	<!-- /#page-wrapper -->
	</div>
	<!-- /#wrapper -->
	<!-- Bootstrap Core JavaScript -->
	<script src="js/bootstrap.min.js"></script>
</body>
</html>
